<ion-view view-title="个人信息">
    <ion-content class="padding">
        <div class="card list">
            <ion-item>用户名:{{user.username}}</ion-item>
            <ion-item>邮箱:{{user.email}}</ion-item>
            <ion-item>手机:{{user.phonenumber}}</ion-item>
            <ion-item>支付账户:{{user.payname}}</ion-item>
            <ion-item>收货地址:{{user.address}}</ion-item>
            <ion-checkbox ng-model="isChecked">修改</ion-checkbox>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">原密码</span>
    <input type="password" ng-model="modify.oldpwd" >
                </label>
            </ion-item>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">新密码</span>
    <input type="password" ng-model="modify.newpwd" >
                </label>
            </ion-item>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">手机</span>
    <input type="text" ng-model="modify.phonenumber" ng-value="user.phonenumber">
            </ion-item>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">支付账户</span>
    <input type="text" ng-model="modify.payname" ng-value="user.payname">
            </ion-item>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">收货地址</span>
    <input type="text" ng-model="modify.address" ng-value="user.address">
            </ion-item>
            <ion-item ng-show="isChecked">
                <button ng-click="modify_information()" class="button button-balanced button-outline button-block">确认修改</button>
            </ion-item>
    </ion-content>
</ion-view>